package org.byqh.dqeai.entity.proxy;

import com.easy.query.core.expression.parser.core.available.TableAvailable;
import com.easy.query.core.proxy.AbstractProxyEntity;
import com.easy.query.core.proxy.SQLColumn;
import com.easy.query.core.proxy.SQLSelectAsExpression;
import com.easy.query.core.proxy.fetcher.AbstractFetcher;
import com.easy.query.core.proxy.core.EntitySQLContext;
import org.byqh.dqeai.entity.EaiSysRoleBusiness;
import com.easy.query.core.proxy.columns.types.SQLStringTypeColumn;

/**
 * this file automatically generated by easy-query, don't modify it
 * 当前文件是easy-query自动生成的请不要随意修改
 * 如果出现属性冲突请使用@ProxyProperty进行重命名
 *
 * @author easy-query
 */
public class EaiSysRoleBusinessProxy extends AbstractProxyEntity<EaiSysRoleBusinessProxy, EaiSysRoleBusiness> {

    private static final Class<EaiSysRoleBusiness> entityClass = EaiSysRoleBusiness.class;

    public static final EaiSysRoleBusinessProxy TABLE = createTable().createEmpty();

    public static EaiSysRoleBusinessProxy createTable() {
        return new EaiSysRoleBusinessProxy();
    }

    public EaiSysRoleBusinessProxy() {
    }

    /**
     * {@link EaiSysRoleBusiness#getRoleId}
     */
    public SQLStringTypeColumn<EaiSysRoleBusinessProxy> roleId() {
        return getStringTypeColumn("roleId");
    }

    /**
     * {@link EaiSysRoleBusiness#getBusinessId}
     */
    public SQLStringTypeColumn<EaiSysRoleBusinessProxy> businessId() {
        return getStringTypeColumn("businessId");
    }

    @Override
    public Class<EaiSysRoleBusiness> getEntityClass() {
        return entityClass;
    }

    /**
     * 数据库列的简单获取
     *
     * @return
     */
    public EaiSysRoleBusinessProxyFetcher FETCHER = new EaiSysRoleBusinessProxyFetcher(this, null, SQLSelectAsExpression.empty);

    public static class EaiSysRoleBusinessProxyFetcher extends AbstractFetcher<EaiSysRoleBusinessProxy, EaiSysRoleBusiness, EaiSysRoleBusinessProxyFetcher> {

        public EaiSysRoleBusinessProxyFetcher(EaiSysRoleBusinessProxy proxy, EaiSysRoleBusinessProxyFetcher prev, SQLSelectAsExpression sqlSelectAsExpression) {
            super(proxy, prev, sqlSelectAsExpression);
        }

        /**
         * {@link EaiSysRoleBusiness#getRoleId}
         */
        public EaiSysRoleBusinessProxyFetcher roleId() {
            return add(getProxy().roleId());
        }

        /**
         * {@link EaiSysRoleBusiness#getBusinessId}
         */
        public EaiSysRoleBusinessProxyFetcher businessId() {
            return add(getProxy().businessId());
        }

        @Override
        protected EaiSysRoleBusinessProxyFetcher createFetcher(EaiSysRoleBusinessProxy cp, AbstractFetcher<EaiSysRoleBusinessProxy, EaiSysRoleBusiness, EaiSysRoleBusinessProxyFetcher> prev, SQLSelectAsExpression sqlSelectExpression) {
            return new EaiSysRoleBusinessProxyFetcher(cp, this, sqlSelectExpression);
        }
    }
}
